<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<infopost-request>
			<xsl:for-each select="ABCB2I">
				<request-head>
					<xsl:for-each select="Header">
						<!-- 试算申请顺序号 -->
						<trans-id>
							<xsl:value-of select="SerialNo" />
						</trans-id>
						<trans-date>
							<xsl:value-of select="TransDate" />
						</trans-date>
						<trans-time>
							<xsl:value-of select="TransTime" />
						</trans-time>
						<bank>203</bank>
						<insu-id>
							<xsl:value-of select="CorpNo" />
						</insu-id>
						<trans-type>104</trans-type>
						<xsl:call-template name="areaAndPostCode">
						</xsl:call-template>
						<branch />
						<agency-hand>
							<xsl:value-of select="Tlid" />
						</agency-hand>
						<xsl:call-template name="sourceTypeCode">
							<xsl:with-param name="srcCode" select="EntrustWay" />
						</xsl:call-template>
						<authorized />
						<!-- 网点名称 -->
						<column1>
							<xsl:value-of select="../App/Req/Base/BranchName" />
						</column1>
						<!-- 网点兼业代理许可证编号 -->
						<column2>
							<xsl:value-of select="../App/Req/Base/BranchCertNo" />
						</column2>
					</xsl:for-each>
				</request-head>
				<request-newbiz>
					<request-underwriting>
						<xsl:for-each select="App">
							<xsl:for-each select="Req">
								<application>
									<xsl:for-each select="Base">
										<!-- 投保单号 -->
										<apply-code>
											<xsl:value-of select="PolicyApplySerial" />
										</apply-code>
										<!-- 投保日期 -->
										<apply-date>
											<xsl:value-of select="ApplyDate" />
										</apply-date>
										<validate-date />
										<sell-way>3</sell-way>
										<policy-type>3</policy-type>
										<group-single>2</group-single>
										<bank-accno />
										<bank-code>203</bank-code>
										<account-type>7</account-type>
										<!-- 续期交费账(卡)号 -->
										<xsl:choose>
											<xsl:when test="RenewPayType= '4'">
												<bank-account />
											</xsl:when>
											<xsl:when test="ConAccNo= ''">
												<bank-account>
													<xsl:value-of select="PolicyApplySerial" />
												</bank-account>
											</xsl:when>
											<xsl:otherwise>
												<bank-account>
													<xsl:value-of select="ConAccNo" />
												</bank-account>
											</xsl:otherwise>
										</xsl:choose>
										<agency-code>
											<xsl:value-of select="../../../Header/BranchNo" />
										</agency-code>
										<agency-hand>
											<xsl:value-of select="../../../Header/Tlid" />
										</agency-hand>
										<agent-code />
										<!-- 续期缴费账户名称 -->
										<account-name>
											<xsl:value-of select="ConAccName" />
										</account-name>
										<acc-bankname />
										<!-- 特别约定 -->
										<assumpsit>
											<xsl:value-of select="SpecArranged" />
										</assumpsit>
										<xsl:choose>
											<xsl:when test="RenewPayType= '4'">
												<pay-mode>94</pay-mode>
											</xsl:when>
											<xsl:otherwise>
												<pay-mode>3</pay-mode>
											</xsl:otherwise>
										</xsl:choose>
										<pay-next>
											<xsl:call-template name="PayModeCode">
												<xsl:with-param name="srcCode" select="RenewPayType" />
											</xsl:call-template>
										</pay-next>
										<overdue-manage>1</overdue-manage>
										<over-manage>2</over-manage>
										<deliver-type>4</deliver-type>
										<currency-code>1</currency-code>
										<answer-type>1</answer-type>
										<answer-phone />
										<answer-assumpsit />
										<premium />
										<policy-pwd />
										<!-- 健康告知 -->
										<xsl:call-template name="HealthNotice">
											<xsl:with-param name="srcCode" select="../Insu/HealthNotice" />
										</xsl:call-template>
										<!-- 凭证号码 -->
										<print-code>
											<xsl:value-of select="VchNo" />
										</print-code>
										<!-- 营销员工 -->
										<agent-name>
											<xsl:value-of select="Saler" />
										</agent-name>
										<!-- 人员资格证编号 -->
										<column1>
											<xsl:value-of select="SalerCertNo" />
										</column1>
										<!-- 凭证种类 -->
										<column2>
											<xsl:value-of select="VchType" />
										</column2>
										<column3 />
										<column4 />
										<column5 />
									</xsl:for-each>
									<policy-holder>
										<xsl:for-each select="Appl">
											<!-- 证件类型 -->
											<xsl:call-template name="CertiTypeCode">
												<xsl:with-param name="srcCode" select="IDKind" />
											</xsl:call-template>
											<!-- 证件号码 -->
											<certi-code>
												<xsl:value-of select="IDCode" />
											</certi-code>
											<marriage-id />
											<!-- 证件生效日期 -->
											<certi-start-date>
												<xsl:value-of select="BeginDate" />
											</certi-start-date>
											<!-- 证件终止日期 -->
											<certi-end-date>
												<xsl:value-of select="InvalidDate" />
											</certi-end-date>
											<race />
											<homeplace />
											<seat-address />
											<!-- 名称 -->
											<real-name>
												<xsl:value-of select="Name" />
											</real-name>
											<!-- 性别 -->
											<xsl:call-template name="GenderCode">
												<xsl:with-param name="srcCode" select="Sex" />
											</xsl:call-template>
											<!-- 出生日期 -->
											<birthday>
												<xsl:value-of select="Birthday" />
											</birthday>
											<!-- 国籍 -->
											<xsl:choose>
												<xsl:when test="Country = ''">
													<xsl:call-template name="CertiTypeCodeMapToCountry">
														<xsl:with-param name="srcCode" select="IDKind" />
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<nationality>37</nationality>
												</xsl:otherwise>
											</xsl:choose>
											<!-- 通讯地址 -->
											<rela-address>
												<xsl:value-of select="Address" />
											</rela-address>
											<!-- 省 -->
											<city-province>
												<xsl:value-of select="Prov" />
											</city-province>
											<!-- 市 -->
											<district>
												<xsl:value-of select="City" />
											</district>
											<!-- 区 -->
											<ward>
												<xsl:value-of select="Zone" />
											</ward>
											<!-- 邮政编码 -->
											<rela-zip>
												<xsl:value-of select="ZipCode" />
											</rela-zip>
											<!-- 电子邮箱 -->
											<email>
												<xsl:value-of select="Email" />
											</email>
											<!-- 固定电话 -->
											<day-phone>
												<xsl:value-of select="Phone" />
											</day-phone>
											<night-phone />
											<!-- 移动电话 -->
											<celler>
												<xsl:value-of select="Mobile" />
											</celler>
											<pay-address>
												<xsl:value-of select="Address" />
											</pay-address>
											<pay-zip>
												<xsl:value-of select="ZipCode" />
											</pay-zip>
											<!-- 年收入 -->
											<xsl:call-template name="yearlyIncomeCode">
												<xsl:with-param name="srcCode" select="AnnualIncome" />
											</xsl:call-template>
											<!-- 工作单位 -->
											<job-com>
												<xsl:value-of select="Company" />
											</job-com>
											<!-- 职业类别 -->
											<industy>
												<xsl:value-of select="JobType" />
											</industy>
											<!-- 职业代码 -->
											<xsl:call-template name="jobCodeCode">
												<xsl:with-param name="srcCode" select="JobCode" />
											</xsl:call-template>
											<!-- 投保人与被保险人关系 -->
											<xsl:call-template name="RelaWithMainInsured">
												<xsl:with-param name="srcCode" select="RelaToInsured" />
											</xsl:call-template>
											<job-address />
											<job-zip />
											<title />
											<job-name />
											<pt-job-name />
											<smoking>N</smoking>
											<social-security />
											<height />
											<weight />
											<valid-year>
												<xsl:value-of select="InvalidDate" />
											</valid-year>
											<!-- 客户类型 -->
											<column1>
												<xsl:value-of select="CustSource" />
											</column1>
										</xsl:for-each>
									</policy-holder>
									<life-assureds>
										<xsl:for-each select="Insu">
											<life-assured>
												<la-no>1</la-no>
												<xsl:choose>
													<xsl:when test="../Appl/RelaToInsured = 1">
														<!-- 证件类型 -->
														<xsl:choose>
															<xsl:when test="IDKind = ''">
																<xsl:call-template name="CertiTypeCode">
																	<xsl:with-param name="srcCode" select="../Appl/IDKind" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="CertiTypeCode">
																	<xsl:with-param name="srcCode" select="IDKind" />
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 证件号码 -->
														<xsl:choose>
															<xsl:when test="IDCode = ''">
																<certi-code>
																	<xsl:value-of select="../Appl/Name" />
																</certi-code>
															</xsl:when>
															<xsl:otherwise>
																<certi-code>
																	<xsl:value-of select="IDCode" />
																</certi-code>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 证件生效日期 -->
														<xsl:choose>
															<xsl:when test="BeginDate = ''">
																<certi-start-date>
																	<xsl:value-of select="../Appl/BeginDate" />
																</certi-start-date>
															</xsl:when>
															<xsl:otherwise>
																<certi-start-date>
																	<xsl:value-of select="BeginDate" />
																</certi-start-date>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 证件终止日期 -->
														<xsl:choose>
															<xsl:when test="ValidDate = ''">
																<certi-end-date>
																	<xsl:value-of select="../Appl/InvalidDate" />
																</certi-end-date>
																<valid-year>
																	<xsl:value-of select="../Appl/InvalidDate" />
																</valid-year>
															</xsl:when>
															<xsl:otherwise>
																<certi-end-date>
																	<xsl:value-of select="ValidDate" />
																</certi-end-date>
																<valid-year>
																	<xsl:value-of select="ValidDate" />
																</valid-year>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 名称 -->
														<xsl:choose>
															<xsl:when test="Name = ''">
																<real-name>
																	<xsl:value-of select="../Appl/Name" />
																</real-name>
															</xsl:when>
															<xsl:otherwise>
																<real-name>
																	<xsl:value-of select="Name" />
																</real-name>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 性别 -->
														<xsl:choose>
															<xsl:when test="Sex = ''">
																<xsl:call-template name="GenderCode">
																	<xsl:with-param name="srcCode" select="../Appl/Sex" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="GenderCode">
																	<xsl:with-param name="srcCode" select="Sex" />
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 出生日期 -->
														<xsl:choose>
															<xsl:when test="Birthday = ''">
																<birthday>
																	<xsl:value-of select="../Appl/Birthday" />
																</birthday>
															</xsl:when>
															<xsl:otherwise>
																<birthday>
																	<xsl:value-of select="Birthday" />
																</birthday>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 国籍 -->
														<xsl:choose>
															<xsl:when test="../Appl/Country = ''">
																<xsl:call-template name="CertiTypeCodeMapToCountry">
																	<xsl:with-param name="srcCode" select="../Appl/IDKind" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<nationality>37</nationality>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 通讯地址 -->
														<xsl:choose>
															<xsl:when test="Address = ''">
																<rela-address>
																	<xsl:value-of select="../Appl/Address" />
																</rela-address>
															</xsl:when>
															<xsl:otherwise>
																<rela-address>
																	<xsl:value-of select="Address" />
																</rela-address>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 省 -->
														<xsl:choose>
															<xsl:when test="Prov = ''">
																<city-province>
																	<xsl:value-of select="../Appl/Prov" />
																</city-province>
															</xsl:when>
															<xsl:otherwise>
																<city-province>
																	<xsl:value-of select="Prov" />
																</city-province>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 市 -->
														<xsl:choose>
															<xsl:when test="City = ''">
																<district>
																	<xsl:value-of select="../Appl/City" />
																</district>
															</xsl:when>
															<xsl:otherwise>
																<district>
																	<xsl:value-of select="City" />
																</district>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 区 -->
														<xsl:choose>
															<xsl:when test="Zone = ''">
																<ward>
																	<xsl:value-of select="../Appl/Zone" />
																</ward>
															</xsl:when>
															<xsl:otherwise>
																<ward>
																	<xsl:value-of select="Zone" />
																</ward>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 邮政编码 -->
														<xsl:choose>
															<xsl:when test="ZipCode = ''">
																<rela-zip>
																	<xsl:value-of select="../Appl/ZipCode" />
																</rela-zip>
															</xsl:when>
															<xsl:otherwise>
																<rela-zip>
																	<xsl:value-of select="ZipCode" />
																</rela-zip>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 电子邮箱 -->
														<xsl:choose>
															<xsl:when test="Email = ''">
																<email>
																	<xsl:value-of select="../Appl/Email" />
																</email>
															</xsl:when>
															<xsl:otherwise>
																<email>
																	<xsl:value-of select="Email" />
																</email>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 固定电话 -->
														<xsl:choose>
															<xsl:when test="Phone = ''">
																<day-phone>
																	<xsl:value-of select="../Appl/Phone" />
																</day-phone>
																<night-phone />
															</xsl:when>
															<xsl:otherwise>
																<day-phone>
																	<xsl:value-of select="Phone" />
																</day-phone>
																<night-phone />
															</xsl:otherwise>
														</xsl:choose>
														<!-- 移动电话 -->
														<xsl:choose>
															<xsl:when test="Mobile = ''">
																<celler>
																	<xsl:value-of select="../Appl/Mobile" />
																</celler>
															</xsl:when>
															<xsl:otherwise>
																<celler>
																	<xsl:value-of select="Mobile" />
																</celler>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 职业类别 -->
														<xsl:choose>
															<xsl:when test="JobType = ''">
																<industy>
																	<xsl:value-of select="../Appl/JobType" />
																</industy>
															</xsl:when>
															<xsl:otherwise>
																<industy>
																	<xsl:value-of select="JobType" />
																</industy>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 职业代码 -->
														<xsl:choose>
															<xsl:when test="JobCode = ''">
																<xsl:call-template name="jobCodeCode">
																	<xsl:with-param name="srcCode" select="../Appl/JobCode" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="jobCodeCode">
																	<xsl:with-param name="srcCode" select="JobCode" />
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 年收入 -->
														<xsl:choose>
															<xsl:when test="AnnualIncome = ''">
																<xsl:call-template name="yearlyIncomeCode">
																	<xsl:with-param name="srcCode" select="../Appl/AnnualIncome" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="yearlyIncomeCode">
																	<xsl:with-param name="srcCode" select="AnnualIncome" />
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 工作单位 -->
														<xsl:choose>
															<xsl:when test="JobCode = ''">
																<job-com>
																	<xsl:value-of select="../Appl/Company" />
																</job-com>
															</xsl:when>
															<xsl:otherwise>
																<job-com>
																	<xsl:value-of select="Company" />
																</job-com>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:when>
													<xsl:otherwise>
														<!-- 证件类型 -->
														<xsl:call-template name="CertiTypeCode">
															<xsl:with-param name="srcCode" select="IDKind" />
														</xsl:call-template>
														<!-- 证件号码 -->
														<certi-code>
															<xsl:value-of select="IDCode" />
														</certi-code>
														<!-- 证件生效日期 -->
														<certi-start-date>
															<xsl:value-of select="BeginDate" />
														</certi-start-date>
														<!-- 证件终止日期 -->
														<certi-end-date>
															<xsl:value-of select="ValidDate" />
														</certi-end-date>
														<valid-year>
															<xsl:value-of select="ValidDate" />
														</valid-year>
														<!-- 名称 -->
														<real-name>
															<xsl:value-of select="Name" />
														</real-name>
														<!-- 性别 -->
														<xsl:call-template name="GenderCode">
															<xsl:with-param name="srcCode" select="Sex" />
														</xsl:call-template>
														<!-- 出生日期 -->
														<birthday>
															<xsl:value-of select="Birthday" />
														</birthday>
														<!-- 国籍 -->
														<xsl:choose>
															<xsl:when test="Country = ''">
																<xsl:call-template name="CertiTypeCodeMapToCountry">
																	<xsl:with-param name="srcCode" select="IDKind" />
																</xsl:call-template>
															</xsl:when>
															<xsl:otherwise>
																<nationality>37</nationality>
															</xsl:otherwise>
														</xsl:choose>
														<!-- 通讯地址 -->
														<rela-address>
															<xsl:value-of select="Address" />
														</rela-address>
														<!-- 省 -->
														<city-province>
															<xsl:value-of select="Prov" />
														</city-province>
														<!-- 市 -->
														<district>
															<xsl:value-of select="City" />
														</district>
														<!-- 区 -->
														<ward>
															<xsl:value-of select="Zone" />
														</ward>
														<!-- 邮政编码 -->
														<rela-zip>
															<xsl:value-of select="ZipCode" />
														</rela-zip>
														<!-- 电子邮箱 -->
														<email>
															<xsl:value-of select="Email" />
														</email>
														<!-- 固定电话 -->
														<day-phone>
															<xsl:value-of select="Phone" />
														</day-phone>
														<night-phone />
														<!-- 移动电话 -->
														<celler>
															<xsl:value-of select="Mobile" />
														</celler>
														<!-- 年收入 -->
														<yearly-income>
															<xsl:value-of select="AnnualIncome" />
														</yearly-income>
														<!-- 工作单位 -->
														<job-com>
															<xsl:value-of select="Company" />
														</job-com>
														<!-- 职业类别 -->
														<industy>
															<xsl:value-of select="JobType" />
														</industy>
														<!-- 职业代码 -->
														<xsl:call-template name="jobCodeCode">
															<xsl:with-param name="srcCode" select="../Appl/JobCode" />
														</xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
												<marriage-id />
												<race />
												<homeplace />
												<seat-address />
												<job-address />
												<job-zip />
												<title />
												<job-name />
												<pt-job-name />
												<!-- 被保人与投保人关系 -->
												<xsl:call-template name="RelaWithPolicyHolder">
													<xsl:with-param name="srcCode" select="../Appl/RelaToInsured" />
												</xsl:call-template>
												<relation-with-main-insured>1</relation-with-main-insured>
												<smoking>N</smoking>
												<!-- 身高 -->
												<height>
													<xsl:value-of select="Tall" />
												</height>
												<!-- 体重 -->
												<weight>
													<xsl:value-of select="Weight" />
												</weight>
											</life-assured>
										</xsl:for-each>
									</life-assureds>
									<beneficiaries>
										<xsl:for-each select="Bnfs">
											<!-- 第一个受益人 -->
											<xsl:if test="Count &gt; 0">
												<beneficiary>
													<la-no>1</la-no>
													<!-- 被保人与投保人关系 -->
													<xsl:call-template name="BeneTypeCode">
														<xsl:with-param name="srcCode" select="Type1" />
													</xsl:call-template>
													<!-- 证件类型 -->
													<xsl:call-template name="CertiTypeCode">
														<xsl:with-param name="srcCode" select="IDKind1" />
													</xsl:call-template>
													<!-- 证件号码 -->
													<certi-code>
														<xsl:value-of select="IDCode1" />
													</certi-code>
													<!-- 证件生效日期 -->
													<certi-start-date>
														<xsl:value-of select="BeginDate1" />
													</certi-start-date>
													<!-- 证件终止日期 -->
													<certi-end-date>
														<xsl:value-of select="InvalidDate1" />
													</certi-end-date>
													<!-- 名称 -->
													<real-name>
														<xsl:value-of select="Name1" />
													</real-name>
													<!-- 性别 -->
													<xsl:call-template name="GenderCode">
														<xsl:with-param name="srcCode" select="Sex1" />
													</xsl:call-template>
													<!-- 出生日期 -->
													<birthday>
														<xsl:value-of select="Birthday1" />
													</birthday>
													<!-- 与被保人关系 -->
													<xsl:choose>
														<xsl:when test="RelationToInsured1 = 1">
															<legal-bene-indi>Y</legal-bene-indi>
														</xsl:when>
														<xsl:otherwise>
															<legal-bene-indi>N</legal-bene-indi>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 受益顺序 -->
													<bene-order>
														<xsl:value-of select="Sequence1" />
													</bene-order>
													<!-- 受益比例 -->
													<bene-rate>
														<xsl:value-of select="Prop1" />
													</bene-rate>
													<!-- 国籍 -->
													<xsl:choose>
														<xsl:when test="Country1 = ''">
															<xsl:call-template name="CertiTypeCodeMapToCountry">
																<xsl:with-param name="srcCode" select="IDKind1" />
															</xsl:call-template>
														</xsl:when>
														<xsl:otherwise>
															<nationality>37</nationality>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 通讯地址 -->
													<address>
														<xsl:value-of select="Address1" />
													</address>
													<zip />
													<job-code />
													<!-- 与被保人关系 -->
													<xsl:call-template name="RelaWithInsured">
														<xsl:with-param name="srcCode" select="RelationToInsured1" />
													</xsl:call-template>
													<!--- bene-is-empty is added as check condition -->
													<xsl:choose>
														<xsl:when test="Name1='' and Sex1='' and RelationToInsured1='' and IDKind1='' and IDCode1='' and Birthday1='' and Sequence1='' and Prop1=''">
															<bene-is-empty>Y</bene-is-empty>
														</xsl:when>
														<xsl:otherwise>
															<bene-is-empty>N</bene-is-empty>
														</xsl:otherwise>
													</xsl:choose>
												</beneficiary>
											</xsl:if>
											<!-- 第二个受益人 -->
											<xsl:if test="Count &gt; 1">
												<beneficiary>
													<la-no>1</la-no>
													<!-- 被保人与投保人关系 -->
													<xsl:call-template name="BeneTypeCode">
														<xsl:with-param name="srcCode" select="Type2" />
													</xsl:call-template>
													<!-- 证件类型 -->
													<xsl:call-template name="CertiTypeCode">
														<xsl:with-param name="srcCode" select="IDKind2" />
													</xsl:call-template>
													<!-- 证件号码 -->
													<certi-code>
														<xsl:value-of select="IDCode2" />
													</certi-code>
													<!-- 证件生效日期 -->
													<certi-start-date>
														<xsl:value-of select="BeginDate2" />
													</certi-start-date>
													<!-- 证件终止日期 -->
													<certi-end-date>
														<xsl:value-of select="InvalidDate2" />
													</certi-end-date>
													<!-- 名称 -->
													<real-name>
														<xsl:value-of select="Name2" />
													</real-name>
													<!-- 性别 -->
													<xsl:call-template name="GenderCode">
														<xsl:with-param name="srcCode" select="Sex2" />
													</xsl:call-template>
													<!-- 出生日期 -->
													<birthday>
														<xsl:value-of select="Birthday2" />
													</birthday>
													<!-- 与被保人关系 -->
													<xsl:choose>
														<xsl:when test="RelationToInsured2 = 1">
															<legal-bene-indi>Y</legal-bene-indi>
														</xsl:when>
														<xsl:otherwise>
															<legal-bene-indi>N</legal-bene-indi>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 受益顺序 -->
													<bene-order>
														<xsl:value-of select="Sequence2" />
													</bene-order>
													<!-- 受益比例 -->
													<bene-rate>
														<xsl:value-of select="Prop2" />
													</bene-rate>
													<!-- 国籍 -->
													<xsl:choose>
														<xsl:when test="Country2 = ''">
															<xsl:call-template name="CertiTypeCodeMapToCountry">
																<xsl:with-param name="srcCode" select="IDKind2" />
															</xsl:call-template>
														</xsl:when>
														<xsl:otherwise>
															<nationality>37</nationality>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 通讯地址 -->
													<address>
														<xsl:value-of select="Address2" />
													</address>
													<zip />
													<job-code />
													<!-- 与被保人关系 -->
													<xsl:call-template name="RelaWithInsured">
														<xsl:with-param name="srcCode" select="RelationToInsured2" />
													</xsl:call-template>
													<!--- bene-is-empty is added as check condition -->
													<xsl:choose>
														<xsl:when test="Name2='' and Sex2='' and RelationToInsured2='' and IDKind2='' and IDCode2='' and Birthday2='' and Sequence2='' and Prop2=''">
															<bene-is-empty>Y</bene-is-empty>
														</xsl:when>
														<xsl:otherwise>
															<bene-is-empty>N</bene-is-empty>
														</xsl:otherwise>
													</xsl:choose>
												</beneficiary>
											</xsl:if>
											<!-- 第三个受益人 -->
											<xsl:if test="Count &gt; 2">
												<beneficiary>
													<la-no>1</la-no>
													<!-- 被保人与投保人关系 -->
													<xsl:call-template name="BeneTypeCode">
														<xsl:with-param name="srcCode" select="Type3" />
													</xsl:call-template>
													<!-- 证件类型 -->
													<xsl:call-template name="CertiTypeCode">
														<xsl:with-param name="srcCode" select="IDKind3" />
													</xsl:call-template>
													<!-- 证件号码 -->
													<certi-code>
														<xsl:value-of select="IDCode3" />
													</certi-code>
													<!-- 证件生效日期 -->
													<certi-start-date>
														<xsl:value-of select="BeginDate3" />
													</certi-start-date>
													<!-- 证件终止日期 -->
													<certi-end-date>
														<xsl:value-of select="InvalidDate3" />
													</certi-end-date>
													<!-- 名称 -->
													<real-name>
														<xsl:value-of select="Name3" />
													</real-name>
													<!-- 性别 -->
													<xsl:call-template name="GenderCode">
														<xsl:with-param name="srcCode" select="Sex3" />
													</xsl:call-template>
													<!-- 出生日期 -->
													<birthday>
														<xsl:value-of select="Birthday3" />
													</birthday>
													<!-- 与被保人关系 -->
													<xsl:choose>
														<xsl:when test="RelationToInsured3 = 1">
															<legal-bene-indi>Y</legal-bene-indi>
														</xsl:when>
														<xsl:otherwise>
															<legal-bene-indi>N</legal-bene-indi>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 受益顺序 -->
													<bene-order>
														<xsl:value-of select="Sequence3" />
													</bene-order>
													<!-- 受益比例 -->
													<bene-rate>
														<xsl:value-of select="Prop3" />
													</bene-rate>
													<!-- 国籍 -->
													<xsl:choose>
														<xsl:when test="Country3 = ''">
															<xsl:call-template name="CertiTypeCodeMapToCountry">
																<xsl:with-param name="srcCode" select="IDKind3" />
															</xsl:call-template>
														</xsl:when>
														<xsl:otherwise>
															<nationality>37</nationality>
														</xsl:otherwise>
													</xsl:choose>
													<!-- 通讯地址 -->
													<address>
														<xsl:value-of select="Address3" />
													</address>
													<zip />
													<job-code />
													<!-- 与被保人关系 -->
													<xsl:call-template name="RelaWithInsured">
														<xsl:with-param name="srcCode" select="RelationToInsured3" />
													</xsl:call-template>
													<!--- bene-is-empty is added as check condition -->
													<xsl:choose>
														<xsl:when test="Name3='' and Sex3='' and RelationToInsured3='' and IDKind3='' and IDCode3='' and Birthday3='' and Sequence3='' and Prop3=''">
															<bene-is-empty>Y</bene-is-empty>
														</xsl:when>
														<xsl:otherwise>
															<bene-is-empty>N</bene-is-empty>
														</xsl:otherwise>
													</xsl:choose>
												</beneficiary>
											</xsl:if>
										</xsl:for-each>
									</beneficiaries>
									<products>
										<product>
											<xsl:for-each select="Risks">
												<la-no>1</la-no>
												<product-num>100</product-num>
												<!-- 主险代码（保险方险种代码） -->
												<main-riskcode>
													<xsl:value-of select="RiskCode" />
												</main-riskcode>
												<external-prd-code>
													<xsl:value-of select="RiskCode" />
												</external-prd-code>
												<!-- 主险名称 -->
												<product-name />
												<is-waiver>N</is-waiver>
												<waiver-num />
												<waiver-object />
												<!-- 保单密码 -->
												<password />
												<!-- 主险份数 -->
												<unit>
													<xsl:value-of select="Share" />
												</unit>
												<!-- 主险保险费 -->
												<discount-prem>
													<xsl:if test=" Prem != ''">
														<xsl:value-of select="Prem" />
													</xsl:if>
												</discount-prem>
												<!-- 主险保险金额/基本保险费 -->
												<amount>
													<xsl:value-of select="Amnt" />
												</amount>
												<!-- 交费方式 -->
												<xsl:call-template name="ChargeModeCode">
													<xsl:with-param name="srcCode" select="PayType" />
												</xsl:call-template>
												<!-- 交费期间类型 -->
												<xsl:choose>
													<xsl:when test="PayType= 1">
														<charge-period>1</charge-period>
													</xsl:when>
													<xsl:otherwise>
														<xsl:call-template name="ChargePeriodCode">
															<xsl:with-param name="srcCode" select="PayDueType" />
														</xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
												<!-- 交费期间 -->
												<xsl:choose>
													<xsl:when test="PayType= 1">
														<charge-year>0</charge-year>
													</xsl:when>
													<xsl:otherwise>
														<charge-year>
															<xsl:value-of select="PayDueDate" />
														</charge-year>
													</xsl:otherwise>
												</xsl:choose>
												<!-- 保险期间类型 -->
												<xsl:call-template name="CoveragePeriodCode">
													<xsl:with-param name="srcCode" select="InsuDueType" />
												</xsl:call-template>
												<!-- 保险期间 -->
												<coverage-year>
													<xsl:value-of select="InsuDueDate" />
												</coverage-year>
												<pay-period />
												<pay-year />
												<end-period />
												<end-year />
												<pay-ensure />
												<pay-type />
												<!-- 红利领取方式 -->
												<xsl:call-template name="CoverageBonusGetMode">
													<xsl:with-param name="srcCode" select="BonusGetMode" />
												</xsl:call-template>
												<!-- 红利分配方式 -->
												<bonuspay-mode>
													<xsl:value-of select="BonusPayMode" />
												</bonuspay-mode>
												<!-- 自动续保标志 -->
												<Iscash-autopay>
													<xsl:value-of select="IsCashAutoPay" />
												</Iscash-autopay>
												<!-- 自动垫交标记 -->
												<autopay-flag>
													<xsl:value-of select="AutoPayForFlag" />
												</autopay-flag>
												<!-- 减额交清标记 -->
												<sub-flag>
													<xsl:value-of select="SubFlag" />
												</sub-flag>
												<!-- 保险起期 -->
												<cvali-date>
													<xsl:value-of select="RiskBeginDate" />
												</cvali-date>
												<!-- 保险止期 -->
												<end-date>
													<xsl:value-of select="RiskEndDate" />
												</end-date>
												<count-way />
												<fullbonus-getmode>1</fullbonus-getmode>
												<rate />
												<Iscash-joininvest />
												<health-flag />
												<first-rate />
												<sure-rate />
												<pay-date />
												<xsl:choose>
													<xsl:when test="Amnt = ''">
														<column1>Y</column1>
													</xsl:when>
													<xsl:otherwise>
														<column1>N</column1>
													</xsl:otherwise>
												</xsl:choose>
												<column2 />
												<column3 />
												<column4 />
												<column5 />
											</xsl:for-each>
										</product>
									</products>
								</application>
							</xsl:for-each>
						</xsl:for-each>
					</request-underwriting>
				</request-newbiz>
			</xsl:for-each>
		</infopost-request>
	</xsl:template>
	<xsl:template name="jobCodeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = ''">
				<job-code>006901</job-code>
			</xsl:when>
			<xsl:otherwise>
				<job-code>
					<xsl:value-of select="$srcCode" />
				</job-code>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="yearlyIncomeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<!-- 网银渠道 -->
			<xsl:when test="/ABCB2I/Header/EntrustWay = '01'">
				<xsl:choose>
					<xsl:when test="$srcCode = '5万以下'">
						<yearly-income>49999</yearly-income>
					</xsl:when>
					<xsl:when test="$srcCode = '5-10万'">
						<yearly-income>99999</yearly-income>
					</xsl:when>
					<xsl:when test="$srcCode = '10-30万'">
						<yearly-income>299999</yearly-income>
					</xsl:when>
					<xsl:when test="$srcCode = '30-50万'">
						<yearly-income>499999</yearly-income>
					</xsl:when>
					<xsl:when test="$srcCode = '50万以上'">
						<yearly-income>500000</yearly-income>
					</xsl:when>
				</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
				<!-- 非网银渠道 -->
				<yearly-income>
					<xsl:value-of select="$srcCode" />
				</yearly-income>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="areaAndPostCode">
		<xsl:choose>
			<xsl:when test="EntrustWay = '01'">
				<!-- 如果是网银渠道则使用虚拟网点203-Virtual，以及该网点的区域号44 -->
				<area>44</area>
				<post>203-Virtual</post>
			</xsl:when>
			<xsl:when test="EntrustWay = '04'">
				<!-- 如果是自助终端渠道则使用虚拟网点203-Virtual，以及该网点的区域号44 -->
				<area>44</area>
				<post>203-Virtual</post>
			</xsl:when>
			<xsl:otherwise>
				<!-- 非网银渠道则使用ProvCode的值作为area，BranchNo的值作为post -->
				<area>
					<xsl:value-of select="ProvCode" />
				</area>
				<post>
					<xsl:value-of select="BranchNo" />
				</post>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="sourceTypeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = '01'">
				<source-type>1</source-type>
			</xsl:when>
			<xsl:when test="$srcCode = '04'">
				<source-type>8</source-type>
			</xsl:when>
			<xsl:otherwise>
				<source-type>
					<xsl:value-of select="$srcCode" />
				</source-type>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="GenderCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 0">
				<gender>M</gender>
			</xsl:when>
			<xsl:when test="$srcCode = 1">
				<gender>F</gender>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<gender>N</gender>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<gender />
			</xsl:when>
			<xsl:otherwise>
				<gender>CODE_NOT_EXIST</gender>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="CertiTypeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 110001 or $srcCode = 110002 or $srcCode = 110003 or $srcCode = 110004">
				<certi-type>1</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 110011 or $srcCode = 110012 or $srcCode = 110013 or $srcCode = 110014 or $srcCode = 110015 or $srcCode = 110016 or $srcCode = 110017 or $srcCode = 110018 or $srcCode = 110033 or $srcCode = 110034 or $srcCode = 110035 or $srcCode = 110036 or $srcCode = 110007 or $srcCode = 110008 or $srcCode = 110027 or $srcCode =110029">
				<certi-type>2</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 110023 or $srcCode = 110024 or $srcCode = 110025 or $srcCode = 110026">
				<certi-type>3</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 110005 or $srcCode = 110006">
				<certi-type>7</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 110009 or $srcCode = 110010 or $srcCode = 110031 or $srcCode = 110032">
				<certi-type>8</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 119998 or $srcCode = 119999 or $srcCode = 110021 or $srcCode = 110022">
				<certi-type>9</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = 110019 or $srcCode = 110020">
				<certi-type>6</certi-type>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<certi-type />
			</xsl:when>
			<xsl:otherwise>
				<certi-type>CODE_NOT_EXIST</certi-type>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="CertiTypeCodeMapToCountry">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 110033 or $srcCode = 110034 or $srcCode = 110035 or $srcCode = 110036">
				<nationality>37</nationality>
			</xsl:when>
			<xsl:when test="$srcCode = 110001 or $srcCode = 110002 or $srcCode = 110003 or $srcCode = 110004">
				<nationality>37</nationality>
			</xsl:when>
			<xsl:when test="$srcCode = 110005 or $srcCode = 110006">
				<nationality>37</nationality>
			</xsl:when>
			<xsl:otherwise>
				<nationality>37</nationality>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="RelaWithMainInsured">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = '01'">
				<relation-with-main-insured>1</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = '02' or $srcCode = '03'">
				<relation-with-main-insured>3</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = '04' or $srcCode = '05'">
				<relation-with-main-insured>10</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = '06' or $srcCode = '07'">
				<relation-with-main-insured>2</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = '08' or $srcCode= '09' or $srcCode = 12 or $srcCode = 13">
				<relation-with-main-insured>12</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 10 or $srcCode = 11 or $srcCode = 14 or $srcCode =15">
				<relation-with-main-insured>13</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 16 or $srcCode = 17 or $srcCode = 18 or $srcCode =19">
				<relation-with-main-insured>11</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 20 or $srcCode = 21 or $srcCode = 22 or $srcCode =23 or $srcCode = 24 or $srcCode = 25 or $srcCode = 26">
				<relation-with-main-insured>14</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 29">
				<relation-with-main-insured>5</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 27 or $srcCode = 28 or $srcCode = 30">
				<relation-with-main-insured>7</relation-with-main-insured>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<relation-with-main-insured />
			</xsl:when>
			<xsl:otherwise>
				<relation-with-main-insured>CODE_NOT_EXIST</relation-with-main-insured>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="RelaWithPolicyHolder">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = '01'">
				<relation-with-policy-holder>
					<xsl:value-of select="1" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = '02' or $srcCode = '03'">
				<relation-with-policy-holder>
					<xsl:value-of select="3" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = '04' or $srcCode = '05'">
				<relation-with-policy-holder>
					<xsl:value-of select="2" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = '06' or $srcCode = '07'">
				<relation-with-policy-holder>
					<xsl:value-of select="10" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = '08' or $srcCode= '09' or $srcCode = 12 or $srcCode = 13">
				<relation-with-policy-holder>
					<xsl:value-of select="13" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = 10 or $srcCode = 11 or $srcCode = 14 or $srcCode = 15">
				<relation-with-policy-holder>
					<xsl:value-of select="12" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = 16 or $srcCode = 17 or $srcCode = 18 or $srcCode = 19">
				<relation-with-policy-holder>
					<xsl:value-of select="11" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = 20 or $srcCode = 21 or $srcCode = 22 or $srcCode = 23 or $srcCode = 24 or $srcCode = 25 or $srcCode = 26">
				<relation-with-policy-holder>
					<xsl:value-of select="14" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = 29">
				<relation-with-policy-holder>
					<xsl:value-of select="4" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = 27 or $srcCode = 28 or $srcCode = 30">
				<relation-with-policy-holder>
					<xsl:value-of select="7" />
				</relation-with-policy-holder>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<relation-with-policy-holder />
			</xsl:when>
			<xsl:otherwise>
				<relation-with-policy-holder>CODE_NOT_EXIST</relation-with-policy-holder>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="RelaWithInsured">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 1">
				<relation-with-insured>15</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<relation-with-insured>2</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 3">
				<relation-with-insured>1</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 4 or $srcCode = 20">
				<relation-with-insured>4</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 5 or $srcCode = 21">
				<relation-with-insured>5</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 6 or $srcCode = 7 or $srcCode = 25 or $srcCode = 22">
				<relation-with-insured>3</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 8 or $srcCode= 12">
				<relation-with-insured>6</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 9 or $srcCode= 13">
				<relation-with-insured>7</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 10 or $srcCode= 14 or $srcCode = 11 or $srcCode = 15 or $srcCode = 23">
				<relation-with-insured>15</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 26 or $srcCode = 27 or $srcCode = 28 or $srcCode = 30 or $srcCode = 24">
				<relation-with-insured>15</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 29">
				<relation-with-insured>14</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 16 or $srcCode = 18">
				<relation-with-insured>8</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = 17 or $srcCode = 19">
				<relation-with-insured>9</relation-with-insured>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<relation-with-insured />
			</xsl:when>
			<xsl:otherwise>
				<relation-with-insured>CODE_NOT_EXIST</relation-with-insured>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="BeneTypeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 0">
				<bene-type>1</bene-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1">
				<bene-type>2</bene-type>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="ChargeModeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 1">
				<charge-mode>5</charge-mode>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<charge-mode>4</charge-mode>
			</xsl:when>
			<xsl:when test="$srcCode = 3">
				<charge-mode>3</charge-mode>
			</xsl:when>
			<xsl:when test="$srcCode = 4">
				<charge-mode>2</charge-mode>
			</xsl:when>
			<xsl:when test="$srcCode = 5">
				<charge-mode>1</charge-mode>
			</xsl:when>
			<xsl:when test="$srcCode = 0">
				<charge-mode>0</charge-mode>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="ChargePeriodCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 1">
				<charge-period>3</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = 4">
				<charge-period>2</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = 0">
				<charge-period>1</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<charge-period>4</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = 3">
				<charge-period>4</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = 5">
				<charge-period>4</charge-period>
			</xsl:when>
			<xsl:when test="$srcCode = ''">
				<charge-period />
			</xsl:when>
			<xsl:otherwise>
				<charge-period>CODE_NOT_EXIST</charge-period>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="CoveragePeriodCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 0">
				<coverage-period>0</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 1">
				<coverage-period>4</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<coverage-period>4</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 3">
				<coverage-period>4</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 4">
				<coverage-period>2</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 5">
				<coverage-period>3</coverage-period>
			</xsl:when>
			<xsl:when test="$srcCode = 6">
				<coverage-period>1</coverage-period>
			</xsl:when>
			<xsl:otherwise>
				<coverage-period>CODE_NOT_EXIST</coverage-period>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="CoverageBonusGetMode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 0">
				<bonus-choice>1</bonus-choice>
			</xsl:when>
			<xsl:when test="$srcCode = 1">
				<bonus-choice>2</bonus-choice>
			</xsl:when>
			<xsl:when test="$srcCode = 2">
				<bonus-choice>3</bonus-choice>
			</xsl:when>
			<xsl:when test="$srcCode = 3">
				<bonus-choice>5</bonus-choice>
			</xsl:when>
			<xsl:otherwise>
				<bonus-choice>3</bonus-choice>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="PayModeCode">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = '0'">
				3
			</xsl:when>
			<xsl:when test="$srcCode = '1'">
				80
			</xsl:when>
			<xsl:when test="$srcCode = '2'">
				2
			</xsl:when>
			<xsl:when test="$srcCode = '3'">
				58
			</xsl:when>
			<xsl:when test="$srcCode = '4'">
				94
			</xsl:when>
			<xsl:otherwise>
				3
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="HealthNotice">
		<xsl:param name="srcCode" />
		<xsl:choose>
			<xsl:when test="$srcCode = 0">
				<health-notice>N</health-notice>
			</xsl:when>
			<xsl:when test="$srcCode = 1">
				<health-notice>Y</health-notice>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>
